<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>拉拉货物流有限公司</title>
		<meta name="keywords" content="拉拉货物流有限公司,汕头物流配送,汕头物流,汕头物流货运,汕头货运,全国货运,厦门物流配送,深圳物流配送,广州物流配送,物流配送,物流货运,货运配送" />
	    <meta name="description" content="拉拉货物流有限公司是一家承接全国各地门到门配送业务的专业第三方物流，为企业量身定做仓储、配送物流方案，针对大小客户配备专业项目小组进行专人专车对接。" />
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	    <link rel="stylesheet" href="css/amazeui.min.css" type="text/css" />
	    <link rel="stylesheet" href="css/style.css" type="text/css" />
	     <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=tr1cFgHnr57lDma8FskVQHz7aNWFD03v"></script>
		<script type="text/javascript" src="js/jquery.min.js" ></script>
	    <script type="text/javascript" src="js/amazeui.min.js" ></script>
		<script>
	    	$(function(){
	    		$(".search-text").click(function(){
	    			$(".am-icon-search").hide();
	    			$(this).attr("value","");
	    		})
	    	})
	    </script>
	</head>
	<body>
		<header data-am-widget="header" class="am-header am-header-default header-green">
	      <div class="am-header-left am-header-nav">
		        <a href="" class="" style="color: #fff;">
			        <img src="images/city.png">
					  <div id="allmap"></div>
			        <p style="font-size: 12px; margin-top: -35px;" id="address"></p>
			    </a>
		  </div>
		  <div class="logo"><img src="images/logo.png"/></div>
	      <div class="am-header-right am-header-nav">
	      	<a href="tel:10086" style="color: #fff;">帮助</a>
	      </div>
       </header>
        <div class="greenbg"></div>
        <!-- <div class="search">
        	<i class="am-icon-search"></i>
           <input type="text" class="search-text" value="请输入关键字" />
        </div> -->
        <div class="dream-list">
				<span><img src="images/laba.png"/></span>
				<div id="divgundong">
                	<p><a href="massage-con.html">张三发布一条消息</a></p>
                	<p><a href="massage-con.html">李四发布一条消息</a></p>
                	<p><a href="massage-con.html">王五发布一条消息</a></p>
                	<p><a href="massage-con.html">马六发布一条消息</a></p>
                	<p><a href="massage-con.html">冯七发布一条消息</a></p>
				</div>
		</div>
		<div class="banner"><img src="images/banner.jpg"/></div>
		<ul class="menu">
			<li>
				<a href="privilege.html" class="menu-box">
					<p>会员特权</p>
					<i class="iconfont">&#xe607;</i>
				</a>
			</li>
				<li>
				<a href="today.html" class="menu-box">
					<p>附近车源</p>
					<i class="iconfont">&#xe605;</i>
				</a>
			</li>
				<li>
				<a href="orderAdd.html" class="menu-box">
					<p>创建订单</p>
					<i class="iconfont">&#xe606;</i>
				</a>
		 </li>
				<li>
				<a class="menu-box">
					<p>讨论区</p>
					<i class="iconfont">&#xe608;</i>
				</a>
			</li> 
		</ul>
		<div class="jl"></div>
		 <div data-am-widget="navbar" class="am-navbar  dream-foot am-no-layout" id="">
		      <ul class="am-navbar-nav1 am-cf am-avg-sm-5">   
		          <li>
		            <a href="index.html" class="curr">
		                <span class="iconfont">&#xe60b;</span>
		                <p class="am-navbar-label">首页</p>
		            </a>
		          </li>
		          <li>
		            <a href="nearby.html" class="">
		                <span class="iconfont">&#xe60c;</span>
		                <p class="am-navbar-label">我的位置</p>
		            </a>
		          </li>
		          <li>
		            <a  class="">
		                <span class="add"><i class="iconfont" style="font-size: 30px; line-height: 40px;">&#xe60e;</i></span>
		                <p class="am-navbar-label" style="margin-top: -36px;"></p>
		            </a>
		          </li>
		          <li>
		            <a href="message.html" class="">
		                <span class="iconfont">&#xe60d;</span>
		                <p class="am-navbar-label">新消息</p>
		            </a>
		          </li>
		          <li>
		            <a  class="" id="center">
		                <span class="iconfont">&#xe609;</span>
		                <p class="am-navbar-label">个人中心</p>
		            </a>
		          </li>
		      </ul>
		</div>
		<script>
			var c, _ = Function;
			with(o = document.getElementById("divgundong")) {
					innerHTML += innerHTML;
					onmouseover = _("c=1");
					onmouseout = _("c=0");
				}
				(F = _("if(#%30||!c)#++,#%=o.scrollHeight>>1;setTimeout(F,#%30?10:2400);".replace(/#/g, "o.scrollTop")))();
		
		var map = new BMap.Map("allmap");
		//初始化地图 默认加载北京天安门
		var point = new BMap.Point(116.331398, 39.897445);
		map.centerAndZoom(point, 16); //初始化地图，point为中心点，缩放级别为16
		//判断手机浏览器是否支持定位
		if(navigator.geolocation) {
		    var geolocation = new BMap.Geolocation(); //创建定位实例
		    geolocation.getCurrentPosition(showLocation, {
		        enableHighAccuracy: true
		    }); //enableHighAccuracy 要求浏览器获取最佳结果
		} else {
		    map.addControl(new BMap.GeolocationControl()); //添加定位控件 支持定位
		}
		var gc = new BMap.Geocoder();//将坐标转换成地址
		
		//处理定位后的信息
		function showLocation(r) {
		    if(this.getStatus() == BMAP_STATUS_SUCCESS) { //定位成功
		        //新建中心点 并将地图中心移动过去
		        var centerPoint = new BMap.Point(r.longitude, r.latitude);//经度和维度
		        map.panTo(centerPoint);
		        map.setCenter(centerPoint);
		        gc.getLocation(centerPoint,function(rs){
		            var addComp = rs.addressComponents;  
		            var mapAddress =  addComp.city 
		            + addComp.street + addComp.streetNumber;   
		            //mui.alert(mapAddress);
		            var address = document.getElementById('address');
		            $("#address").html(mapAddress);
					var adress=JSON.stringify(mapAddress)
					sessionStorage.setItem("adress",adress)
					//alert(mapAddress)
		            address.readOnly='readonly';
		
		        });
		        //新建标注
		        var mk = new BMap.Marker(centerPoint);
		        mk.disableDragging(); // 不可拖拽
		        map.addOverlay(mk);
		    } else {
		        mui.alert('failed' + this.getStatus()); //定位失败
		    }
		}
		//判断user权限
		     $("#center").click(function(){
			if(sessionStorage.getItem("user")==null){
				location.href='login.html'
			}else{
				location.href='member.html'
			}
			})
		
		</script>
	</body>
</html>
